package leader.action;

import java.util.List;

import leader.service.LeaderService;

import teacher.bean.Expertclass;

public class ToAddTeacherAction {
	private List<Expertclass> experter;
	
	public List<Expertclass> getExperter() {
		return experter;
	}

	public void setExperter(List<Expertclass> experter) {
		this.experter = experter;
	}

	public String execute(){
		if(null != experter) {
			LeaderService LS = new LeaderService();
			experter = LS.selectAllExpertclass();
		}
		return "success";
	}
}
